package com.hxzy.boot.old.requestcontroller;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author wzm
 * @create 2023-09-23 9:12
 * project_name:javaweb2308
 */
@RestController
public class RequestController04 {

    @RequestMapping("/request04")
    public String req04(@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime createTime){
        System.out.println("createTime = " + createTime);

        return "ok!!!";
    }

}
